/*
 * @Author: liyaqi liyaqi0126@163.com
 * @Date: 2024-09-07 16:10:16
 * @LastEditors: liyaqi liyaqi0126@163.com
 * @LastEditTime: 2024-09-07 16:28:35
 * @FilePath: \FinancialLeasing-FG-FLCompany\src\api\systemConfig\enterprise.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询企业类型
export function listCompany(query) {
    return request({
        url: '/flcompany/config/company/list',
        method: 'get',
        params: query
    })
}

// 新增企业类型
export function addCompany(data) {
    return request({
        url: '/flcompany/config/company/',
        method: 'post',
        data: data
    })
}

// 修改企业类型
export function updateCompany(data) {
    return request({
        url: '/flcompany/config/company/',
        method: 'put',
        data: data
    })
}

// 删除企业类型
export function delCompany(id) {
    return request({
        url: '/flcompany/config/company/' + id,
        method: 'delete'
    })
}